package com.gaoyubo.service;

import com.gaoyubo.entity.Oder;
import com.gaoyubo.entity.User;

import java.sql.Date;
import java.util.List;
import java.util.Optional;

public interface UserService {
    //向用户表中增加
    <U extends User> U save1(U u);
    //向订单表中增加
    <O extends Oder> O save2(O o);
    //根据id查询
    Optional<User> findById(Integer id);
    //根据id删除
    void deleteById(Integer id);
    //
    List<User> findAllByBirthday(Date date);

}
